package com.vanke.devops.domain.manager.docker.extend.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author 陈景阳
 * @since 2018/6/7
 */
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TaskSpec implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonProperty("PluginSpec")
    private PluginSpec pluginSpec;

    @JsonProperty("ContainerSpec")
    private ContainerSpec containerSpec;

    @JsonProperty("Runtime")
    private String runtime;

    @JsonProperty("ForceUpdate")
    private Integer forceUpdate;

    @JsonProperty("Networks")
    private List<Map<String,Object>> networks;
}
